import request from '@/utils/request'

// 查询labortary列表
export function listLaboratory(query) {
  return request({
    url: '/test/laboratory/list',
    method: 'get',
    params: query
  })
}
// 新增站内信
export function addMessage(data) {
  return request({
    url: '/test/message',
    method: 'post',
    data: data
  })
}
// 查询labortary详细
export function getLaboratory(laboratoryId) {
  return request({
    url: '/test/laboratory/' + laboratoryId,
    method: 'get'
  })
}

// 新增labortary
export function addLaboratory(data) {
  return request({
    url: '/test/laboratory',
    method: 'post',
    data: data
  })
}
// 新增实验室申请
export function addApplication(data) {
  return request({
    url: '/test/application',
    method: 'post',
    data: data
  })
}

// 修改实验室申请
export function updateApplication(data) {
  return request({
    url: '/test/application',
    method: 'put',
    data: data
  })
}

// 修改labortary
export function updateLaboratory(data) {
  return request({
    url: '/test/laboratory',
    method: 'put',
    data: data
  })
}

// 删除labortary
export function delLaboratory(laboratoryId) {
  return request({
    url: '/test/laboratory/' + laboratoryId,
    method: 'delete'
  })
}
